package com.cug.smartranch.animal.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cug.smartranch.animal.admin.dao.entity.Animal;
import com.cug.smartranch.animal.admin.dto.req.AnimalPageQueryReqDTO;
import com.cug.smartranch.animal.admin.dto.req.AnimalSaveReqDTO;
import com.cug.smartranch.animal.admin.dto.req.AnimalUpdateReqDTO;
import com.cug.smartranch.animal.admin.dto.resp.AnimalPageQueryRespDTO;
import com.cug.smartranch.animal.admin.dto.resp.AnimalQueryRespDTO;

import java.util.List;

/**
 * 动物记录业务逻辑层
 */
public interface AnimalService extends IService<Animal> {
    /**
     * 创建动物记录
     *
     * @param requestParam 请求参数
     */
    void createAnimal(AnimalSaveReqDTO requestParam);

    IPage<AnimalPageQueryRespDTO> selectAllAnimal(AnimalPageQueryReqDTO requestParam);

    AnimalQueryRespDTO selectOne(Long id);

    void deleteOne(Long id);

    void checkAnimalDelete(Long id);

    void updateOne(AnimalUpdateReqDTO requestParam);

    List<Long> selectAllAnimalIds();
}
